package com.service;

import com.entity.User;

import org.springframework.stereotype.Service;

import java.util.List;
@Service("userService")
public interface UserService {
    public List<User> getUserByCond(User user);
    public int insertUser(User user);
    public List<User> getAllUser();

    public int updateUser(User user);

    // 按主键删除管理员表数据 调用adminDAO里的deleteAdmin配置
    public int deleteUser(String id);
    public User getUserById(String id);
    public List<User> getUserByUsername(String username);
}
